/*
 * Copyright 2020-2030 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/
package com.woodws.fresh.im.entity

import com.woodws.fresh.common.data.beetl.annotation.*
import org.beetl.sql.annotation.entity.*
import java.time.LocalDateTime

/**
 * 好友分组表实体类
 * @author maoxiaodong
*/
data class ImFriendGroup(@AssignID("snowflake") var id: Long? = null){

    /**
    * 分组名称
    */
    var name: String? = null

    /**
    * 所属用户id
    */
    var userId: Long? = null

    /**
    * 创建时间
    */
    @UpdateIgnore
    @CreatedDate
    var createdDate: LocalDateTime? = null

    /**
    * 创建人
    */
    @UpdateIgnore
    @CreatedBy
    var createdBy: Long? = null

    /**
    * 最后更新时间
    */
    @LastModifiedDate
    var lastModifiedDate: LocalDateTime? = null

    /**
    * 最后更新人
    */
    @LastModifiedBy
    var lastModifiedBy: Long? = null

    /**
    * 租户ID
    */
    @UpdateIgnore
    @TenantId
    var tenantId: Long? = null

    /**
    * 逻辑删除（0：已删除，1：未删除）
    */
    @LogicDelete
    var delFlag: Int = 1
}